export default {
    bind(el, bingding, vnode) {
        const _ops = bingding.value;
        const _c = el.getElementsByClassName(_ops.className);
        _c[_ops.curIdx].classList.add(_ops.activeClass);
        // 或者这种写法:  _c[_ops.curIdx].className += ` ${_ops.activeClass}`;  注意+= 后面有一个空格
    },
    update(el, bingding, vnode) {
        debugger
        const _ops = bingding.value;
        const _oldOps = bingding.oldValue;
        const _c = el.getElementsByClassName(_ops.className);
        _c[_oldOps.curIdx].className = `${_oldOps.className}`;
        _c[_ops.curIdx].classList.add(_ops.activeClass);
    }
}